package com.wangs.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/stock")
public class StockController {

    @Value("${server.port}")
    String port;

    @RequestMapping("/reduce")
    public String reduce() {
        return "扣减扣库存成功！" + port;
    }

    @RequestMapping("/reduce2")
    public String reduce2() {
        return "扣减扣库存成功！" + port;
    }
}
